/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package packetsniff;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import com.ps.util.*;
import java.util.logging.*;


/**
 *
 * @author Adil
 * Simple packetscout/sniffer 
 * Credits:
 * Adil ~ Main implementations of the program
 * Jordan ~ Encoding classes, aka com.ps.util
 *Licensed under the Mozilla Public License ~ http://www.mozilla.org/MPL/MPL-1.1.html 
 * ©2011
 * http://jokercode.net/downloads/packetscout.zip
 */
public class Packetsniff {

    /**
     * class arguments here
     */
    static String rawInput = null;
    static String encodedInput = null;
    
   
    
    
    
    
    public static void main(String[] args) {
        /*---------------Entry point*/
        System.out.println("Packetscout V0.5 - dev edition");
        System.out.println("Enter your raw string");
        BufferedReader raw = new BufferedReader(new InputStreamReader(System.in));
        try {
            rawInput = raw.readLine();
        } catch (IOException ex) {
            ex.printStackTrace();
            System.gc();
            System.exit(1);
        }
        System.out.println("Raw string is : "+rawInput);
        System.out.println("Encoding (base64)...");
         int b64encodedString = b64.Decode(rawInput);
      System.out.println( "BASE64 OUTPUT:\n" + b64encodedString);
      System.out.println("Encoding to vl64..");
        vl64.Encode(b64encodedString);
        System.out.println("VL64 OUTPUT:\n" + vl64.Encode(b64encodedString));
      System.out.println("Thank you for using this program.");
      System.gc();
      System.exit(1);
    }
}
